Broadway: Add id for nodes and reuse old ones
authorAlexander Larsson <alexl@redhat.com>
Mon, 25 Mar 2019 13:15:49 +0000 (14:15 +0100)
committerAlexander Larsson <alexl@redhat.com>
Tue, 26 Mar 2019 16:07:47 +0000 (17:07 +0100)
commitfbefec52a56b45da4e77cefca16aea9e9db38f47
treeb3b99422cc7d90c835e54b8428418695d8a06f27
parentd59d8b5dd4a3719475c39ef3144e599b546ff9b3
Broadway: Add id for nodes and reuse old ones

When sending render nodes from the client to the daemon we add an id,
and whenever we're about to re-send the entire tree node we instead
send the old id. We track all the nodes for the previous frame
of the surface this way.

Having the id on the daemon side will allow us do to much better deltas.
gdk/broadway/broadway-protocol.h
gdk/broadway/broadway-server.c
gdk/broadway/broadway-server.h
gdk/broadway/broadwayd.c
gdk/broadway/gdkdisplay-broadway.c
gdk/broadway/gdkdrawcontext-broadway.c
gsk/gskbroadwayrenderer.c